﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hospital_registration_system.Entity
{
    /// <summary>
    /// 病人表实体类
    /// </summary>
    public class Patients
    {

        private int id;                  //病人id
        private String patient_name;     //姓名
        private String nickname;         //昵称
        private String sex;              //性别
        private int age;                 //年龄
        private String email;            //邮箱
        private String telephone;        //手机
        private String address;          //地址
        private String patient_password;      //密码
        private String CREATED_BY;           // 创建人
        private DateTime CREATED_TIME;       //创建时间
        private String UPDATED_BY;           //更新人
        private DateTime UPDATED_TIME;       //更新时间
        private int state;                   //状态

        public Patients() { }

        public Patients(int id, string nickname, string patient_name, string sex, int age, string telephone, string email, string address, string patient_password, string cREATED_BY, DateTime cREATED_TIME, string uPDATED_BY, DateTime uPDATED_TIME, int state)
        {
            this.id = id;
            this.patient_name = patient_name;
            this.nickname = nickname;
            this.sex = sex;
            this.age = age;
            this.email = email;
            this.telephone = telephone;
            this.address = address;
            this.patient_password = patient_password;
            CREATED_BY = cREATED_BY;
            CREATED_TIME = cREATED_TIME;
            UPDATED_BY = uPDATED_BY;
            UPDATED_TIME = uPDATED_TIME;
            this.state = state;
        }

        
        public override string ToString()
        {
            return base.ToString();
        }
        public int Id { get => id; set => id = value; }
        public string Patient_name { get => patient_name; set => patient_name = value; }
        public string Nickname { get => nickname; set => nickname = value; }
        public string Sex { get => sex; set => sex = value; }
        public int Age { get => age; set => age = value; }
        public string Email { get => email; set => email = value; }
        public string Telephone { get => telephone; set => telephone = value; }
        public string Address { get => address; set => address = value; }
        public string Patient_password { get => patient_password; set => patient_password = value; }
        public string CREATED_BY1 { get => CREATED_BY; set => CREATED_BY = value; }
        public DateTime CREATED_TIME1 { get => CREATED_TIME; set => CREATED_TIME = value; }
        public string UPDATED_BY1 { get => UPDATED_BY; set => UPDATED_BY = value; }
        public DateTime UPDATED_TIME1 { get => UPDATED_TIME; set => UPDATED_TIME = value; }
        public int State { get => state; set => state = value; }
    }
}
